package com.example.inventoryapi;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author: vince_zww
 * @date: 2020/7/28 19:41
 * @desceription:
 */
@RequestMapping("/inventory")
public interface InventoryApi {
    @RequestMapping(value = "/deduct/{productId}/{stock}",method = RequestMethod.PUT)
    String deductStock(@PathVariable("productId") Long productId,
                       @PathVariable("stock") Long stock);

}
